<link rel="stylesheet" type="text/css" href="{{ URL::asset('public_css/base.css') }}" />
@include('new.newheader')
<link rel="stylesheet" type="text/css" href="{{ URL::asset('newpay/css/newpay.css') }}" />
<script src="{{ URL::asset('public_js/jquery-3.2.1.min.js') }}"></script>

<div class="paysucess">
	@if($status == 0)
		<div class="paysuccessImg" style="width: 252px;float: none; margin: 0 auto;padding-top: 0px;">
			<p><img src="{{ URL::asset('newpay/image/error.png') }}" alt="" style="display: block;width: 80px;margin: 0 auto;"></p>
			<p style="text-align: center;">购买失败，请正确操作</p>
		</div>
	@elseif($status == 1)
		@if($data->status == 2)
			<div class="paysuccessImg">
				<p><img src="{{ URL::asset('newpay/image/paysuccess.png') }}" alt=""></p>
				<p>购买成功</p>
			</div>
			<div class="payDetails">
				<p><span>收货人</span> <span>{{$data->username}}</span></p>
				<p><span>手机号</span> <span>{{$data->tel}}</span></p>
				<p><span>收货地</span> <span>{{$data->province}}{{$data->city}}{{$data->country}}{{$data->addressinfo}}</span></p>
			</div>
		@else
			<div class="paysuccessImg" style="width: 252px;float: none; margin: 0 auto;padding-top: 0px;">
				<p><img src="{{ URL::asset('newpay/image/error.png') }}" alt="" style="display: block;width: 80px;margin: 0 auto;"></p>
				<p style="text-align: center;">交易失败</p>
			</div>
		@endif
	@endif
</div>
<div class="confirm" onclick="javascript:window.location.href='{{url('/')}}';">确定</div>
<script>

</script>
